using System;
using System.Collections;
using Microsoft.Office.Interop.InfoPath.SemiTrust;
using InfoJetSoft.Service.Entity;

namespace InfoJetSoft.Service.ManagedCode
{
	/// <summary>
	/// Summary description for UI.
	/// </summary>
	public class UI : Microsoft.Office.Interop.InfoPath.SemiTrust.UIObject
	{
		private Form form = null;

		public UI( Form form )
		{
			this.form = form;
		}

		public void Alert(string bstrAlertString)
		{
			if( form.DisableAction )
			{
				return;
			}
			form.ModalMessageList.Add( bstrAlertString );
		}

		public void ShowMailItem(string bstrTo, string bstrCC, string bstrBCC, string bstrSubject, string bstrBody){}
		public object ShowModalDialog(string bstrName, object varArguments, object varHeight, object varWidth, object varTop, object varLeft){ return null; }
		public void ShowSignatureDialog(){}
		public XdConfirmChoice Confirm(string bstrPrompt, XdConfirmButtons lButtons){ return XdConfirmChoice.xdCancel; }
		public void SetSaveAsDialogFileName(string bstrFileName){}
		public void SetSaveAsDialogLocation(string bstrLocation){}

	}
}
